<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<link href="dist/css/offcanvas.css" rel="stylesheet">
<body>
	<div class="row row-offcanvas row-offcanvas-right">
		<div class="col-xs-12 col-sm-12 sidebar-offcanvas" id="sidebar">
			<div class="well sidebar-nav" style="overflow: auto; height:500px;">
				<ul class="nav" >
					<s:iterator value="#session.usersList" var="x">
						<li><c:if test="${x.logged_in == false}">
								<c:if test="${x.present == true}">
									<div class="alert alert-info">
										<a href="showLoginScreen?id=<s:property value="id"/>"
											class="alert-link"> <s:property value="firstname" /> <s:property
												value="lastname" /></a> logged out at
										<s:property value="time_out" />
									</div>
								</c:if>
								<c:if test="${x.present == false}">
									<c:if test="${x.workFromHome == true}">
										<div class="alert alert-warning">
											<b><s:property value="firstname" /> <s:property
													value="lastname" /></b> working from home
										</div>
									</c:if>
									<c:if test="${x.workFromHome == false}">
										<div class="alert alert-danger">
											<a href="showLoginScreen?id=<s:property value="id"/>"
												class="alert-link"> <s:property value="firstname" /> <s:property
													value="lastname" /></a> not yet logged in
										</div>
									</c:if>
								</c:if>
							</c:if> <c:if test="${x.logged_in == true}">
								<div class="alert alert-success">
									<a href="showLoginScreen?id=<s:property value="id"/>"
										class="alert-link"> <s:property value="firstname" /> <s:property
											value="lastname" /></a> logged in at
									<s:property value="time_in" />
								</div>
							</c:if></li>
					</s:iterator>
				</ul>
			</div>
			<!--/.well -->
		</div>
		<!--/span-->
	</div>
	<!--/row-->
</body>